#ifndef __TIMER_H
#define __TIMER_H
#include "sys.h"

#define TIM_PRESCALER	35	//72/(71+1)=1MHZ
#define TIM_PERIOD		5000//5ms

extern volatile unsigned int system_timer_counter;
extern volatile uint8_t system_timer_flag;

extern uint8_t step_speed_flag,step_run_flag,step_en_flag;
void TIM3_Pwm_Init(uint16_t arr);
void TIM2_Int_Init(uint16_t arr);
#endif
